package com.ruoyi.PersonalElectricityUsage.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 个人用电信息对象 personal_electricity_usage
 * 
 * @author 智电未来
 * @date 2024-07-12
 */
public class PersonalElectricityUsage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 用电量(kWh) */
    @Excel(name = "用电量(kWh)")
    private BigDecimal electricityusage;

    /** 电价(元/kWh) */
    @Excel(name = "电价(元/kWh)")
    private BigDecimal price;

    /** 总费用 */
    @Excel(name = "总费用")
    private BigDecimal totalCost;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }
    public void setElectricityusage(BigDecimal electricityusage) 
    {
        this.electricityusage = electricityusage;
    }

    public BigDecimal getElectricityusage() 
    {
        return electricityusage;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setTotalCost(BigDecimal totalCost) 
    {
        this.totalCost = totalCost;
    }

    public BigDecimal getTotalCost() 
    {
        return totalCost;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("date", getDate())
            .append("electricityusage", getElectricityusage())
            .append("price", getPrice())
            .append("totalCost", getTotalCost())
            .toString();
    }
}
